/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package structure;

import algorithm.BlobFinder;
import java.awt.image.BufferedImage;
import java.util.ArrayList;
import util.Utils;

/**
 *
 * @author Progresywny Maciek
 */
public class StructureBlob {
    private BufferedImage image;
    private ArrayList<BlobFinder.Blob> arrayBlobs;

    public StructureBlob(){
    this.image=new BufferedImage(32,32,BufferedImage.TYPE_3BYTE_BGR);
    }
    
    public BufferedImage getImage() {
         if (image != null) {
            return this.image;
        } else {
            return new BufferedImage(32,32,BufferedImage.TYPE_3BYTE_BGR);
        }
    }

    public void setImage(BufferedImage image) {
        this.image = Utils.deepCopy(image);
    }

    public ArrayList<BlobFinder.Blob> getArrayBlobs() {
        if (arrayBlobs != null) {
            return arrayBlobs;
        } else {
            return null;
        }
    }

    public void setArrayBlobs(ArrayList<BlobFinder.Blob> arrayBlobs) {
        this.arrayBlobs = arrayBlobs;
    }
    
}
